import { PartialType } from '@nestjs/mapped-types';
import { CreateSpecDto, CreateSpecValueDto } from './create-spec.dto';
import { IsNotEmpty } from 'class-validator';
import { Type } from 'class-transformer';

export class UpdateSpecDto extends PartialType(CreateSpecDto) {}

export class UpdateSpecValueDto extends PartialType(CreateSpecValueDto) {
  @IsNotEmpty()
  @Type(()=> Number)
  parentId: number;
}
